package com.chao.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
@Slf4j
public class IndexController {

    @GetMapping({"/","index"})
    public String index(){
        log.info("进入index页面");
        return "index";
    }

    @GetMapping("goods")
    public String goods(){
        log.info("进入goods页面");
        return "goods";
    }
}
